﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Agenda.Entities;

namespace Agenda
{
    public static class Credentials
    {
        public static Obra currentObra { get; set; }
        
        public static string primaryRoot
        {
            get
            {
                if (Environment.OSVersion.Version.Major < 6)
                {
                    //'Its XP or less'
                    return "C:\\Documents and Settings\\" + System.Environment.UserName + "\\Escritorio\\";
                }
                else
                {
                    //'Its vista or higher version of OS'
                    return "C:\\Users\\" + System.Environment.UserName + "\\Desktop\\";
                }
            }
        }
    }
}
